package com.haixiaoke.saas.apartment.mapper;

import com.haixiaoke.saas.apartment.domain.ServiceFacilities;

import java.util.List;

/**
 * 房屋设施Mapper接口
 *
 * @author xiaolong
 * @date 2023-10-24
 */
public interface ServiceFacilitiesMapper {
    /**
     * 查询房屋设施
     *
     * @param facilitiesId 房屋设施主键
     * @return 房屋设施
     */
    ServiceFacilities selectHouseFacilitiesByFacilitiesId(Long facilitiesId);

    /**
     * 查询房屋设施列表
     *
     * @param serviceFacilities 房屋设施
     * @return 房屋设施集合
     */
    List<ServiceFacilities> selectHouseFacilitiesList(ServiceFacilities serviceFacilities);

    /**
     * 新增房屋设施
     *
     * @param serviceFacilities 房屋设施
     * @return 结果
     */
    int insertHouseFacilities(ServiceFacilities serviceFacilities);

    /**
     * 修改房屋设施
     *
     * @param serviceFacilities 房屋设施
     * @return 结果
     */
    int updateHouseFacilities(ServiceFacilities serviceFacilities);

    /**
     * 删除房屋设施
     *
     * @param facilitiesId 房屋设施主键
     * @return 结果
     */
    int deleteHouseFacilitiesByFacilitiesId(Long facilitiesId);

    /**
     * 批量删除房屋设施
     *
     * @param facilitiesIds 需要删除的数据主键集合
     * @return 结果
     */
    int deleteHouseFacilitiesByFacilitiesIds(Long[] facilitiesIds);

    List<ServiceFacilities> selectBatchHouseFacilitiesByFacilitiesId(List<Long> facilitiesIds);
}
